# Maintainer: Jonas Heinrich <onny@project-insanity.org>
pkgname=projectsandcastle-loader
pkgver=0_git20200307
pkgrel=1
pkgdesc="Loader for Android on iPhone"
url="https://github.com/corellium/projectsandcastle"
arch="all"
license="GPL-2.0-only"
makedepends="libusb-dev"
options="!check" # upstream does not provide tests
_commit="03db9c6ae04141eb940f3b9f56d446f50d57fadf"

source="projectsandcastle-$_commit.tar.gz::https://github.com/corellium/projectsandcastle/archive/$_commit.tar.gz"
builddir="$srcdir"/projectsandcastle-$_commit/loader

build() {
	gcc -o load-linux load-linux.c -lusb-1.0
}

package() {
	install -Dm755 load-linux "$pkgdir"/usr/bin/projectsandcastle-loader
}

sha512sums="
2700611585d9949d5ec58e2d802eacc37934e05fb3c9a56b05ee720b954ba5b6be73d9b49fedc1365cb9c4dc2ae4d48b139001e5a5ae9ed80cb154e739b33a0d  projectsandcastle-03db9c6ae04141eb940f3b9f56d446f50d57fadf.tar.gz
"
